﻿using DotNetOpenAuth.AspNet;
using Microsoft.AspNet.Membership.OpenAuth;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BoriPeter.NutritionManager.FatSecret
{
    public static class AuthenticationClientManagerExtensions
    {
        public static void AddFatSecret(this AuthenticationClientManager clients, string consumerKey, string consumerSecret)
        {
            Func<IAuthenticationClient> factoryMethod = () =>
                {
                    return new FatSecretClient(consumerKey, consumerSecret);
                };

            clients.Add("FatSecret",factoryMethod);
        }
    }
}
